import request from "@/utils/request.ts";

/**
 * 口碑相关接口
 * @author Finn Yu
 * @since 2023/7/9 00:25
 */
const BASE_PATH = '/db-gateway/comment';

//网评排行
export const getAllRank = (params: any) => {
    return request(`${BASE_PATH}/stat/AllRank`, {
        method: 'GET',
        params,
    });
};

//网评总数
export const getTotal30 = (params: any) => {
    return request(`${BASE_PATH}/stat/total`, {
        method: 'GET',
        params,
    });
};

// 网评雷达图
export function getStatDimsCount(params: any) {
    return request(`${BASE_PATH}/stat/dims/count`, {
        params,
    });
}

// 网评平均
export function getAvgscoreNew(params: any) {
    return request(`${BASE_PATH}/stat/avgscoreNew`, {
        params,
    });
}
